package kr.co.boogui.actions.member;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import kr.co.boogui.actions.ActionHandler;

public class LogoutAction implements ActionHandler {
	@Override
	public String execute(HttpServletRequest req, HttpServletResponse res)
			throws ServletException, IOException {
		String viewPage = "r|index.bi";
		HttpSession sess = req.getSession();
		sess.invalidate();	// 세션제거
		return viewPage;
	}
}